package cn.yy.toyflow.service;

import cn.yy.toyflow.entity.*;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface DefFlowService {

    List<State> defineFlowGraph(String processID, List<State> states);

    List<Transition> defineTrans(String processID, List<Transition> transitions);

    List<Action> defineAction(String processID, List<Action> actions);

    Map<String,Group> defineGroupForProcess(String processID, Map<String, List<String>> groups);
}
